import { Module } from '@nestjs/common';
import { StatusController } from './status.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { ArticleService } from '../../services/acticle.service';
import { ArticleSchema } from '../../model/schema/article.schema';
import { WxLoggerSchema } from '../../model/schema/logger.schema';
import { WxLoggerService } from '../../services/logger.service';

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: 'WxLogger', schema: WxLoggerSchema , collection: 'wxlogger'},
            { name: 'Article', schema: ArticleSchema , collection: 'article'},
        ]),
    ],
    controllers: [StatusController],
    providers: [ArticleService, WxLoggerService ],
    exports: [ArticleService, WxLoggerService],

})
export class StatusModule {}
